<template>
	<div class="xzfx-empty">
		<image :src="$getImgPath('drGGckRGU3io9b31f6f9ff4f66d767365524aeb816ba_1681802344371.webp')">
		<div class="tips">{{ tips }}</div>
		<div v-if="showBtn" class="btn" @click.stop="$emit('submit')">{{ btnText }}</div>
	</div>
</template>

<script>
	export default {
		props: {
			tips: {
				type: String,
				default: "暂无数据"
			},
			showBtn: {
				type: Boolean,
				default: false
			},
			btnText: {
				type: String,
				default: "确定"
			}
		}
	}
</script>

<style scoped lang="scss">
	.xzfx-empty{
		min-height: 666rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		image{
			width: 300rpx;
			height: 300rpx;
			display: block;
		}
		.tips{
			font-size: 32rpx;
			color: #999999;
		}
		.btn{
			margin-top: 20rpx;
			width: 200rpx;
			height: 90rpx;
			border-radius: 45rpx;
			color: #fff;
			background-color: $xzfx-theme;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 32rpx;
		}
	}
</style>